package com.ayuku.course.ui.coursepackage;

import org.eclipse.nebula.widgets.tablecombo.TableCombo;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;

import com.ayuku.commons.AyuBigDecimal;

public class CompCoursePackage extends Composite {
	private Text txtCode;
	private Text txtName;
	private TableCombo cmbCategory;
	private TableCombo cmbLevel;
	private AyuBigDecimal txtBiaya;

	/**
	 * Create the composite.
	 * 
	 * @param parent
	 * @param style
	 */
	public CompCoursePackage(Composite parent, int style) {
		super(parent, style);
		setLayout(new GridLayout(2, false));

		Label lblNewLabel = new Label(this, SWT.NONE);
		lblNewLabel.setText("Code");

		txtCode = new Text(this, SWT.BORDER);
		txtCode.setTextLimit(10);
		txtCode.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false,
				1, 1));

		Label lblNewLabel_1 = new Label(this, SWT.NONE);
		lblNewLabel_1.setText("Name");

		txtName = new Text(this, SWT.BORDER);
		txtName.setTextLimit(50);
		txtName.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false,
				1, 1));

		Label lblNewLabel_2 = new Label(this, SWT.NONE);
		lblNewLabel_2.setText("Category");

		cmbCategory = new TableCombo(this, SWT.BORDER);
		cmbCategory.setTextLimit(10);
		cmbCategory.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true,
				false, 1, 1));

		Label lblNewLabel_3 = new Label(this, SWT.NONE);
		lblNewLabel_3.setText("Level");

		cmbLevel = new TableCombo(this, SWT.BORDER | SWT.READ_ONLY);
		cmbLevel.setTextLimit(10);
		cmbLevel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true,
				false, 1, 1));

		Label lblNewLabel_4 = new Label(this, SWT.NONE);
		lblNewLabel_4.setText("Fee");

		txtBiaya = new AyuBigDecimal(this, SWT.BORDER);
		txtBiaya.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false,
				1, 1));
	}

	public Text getTxtCode() {
		return txtCode;
	}

	public void setTxtCode(Text txtCode) {
		this.txtCode = txtCode;
	}

	public Text getTxtName() {
		return txtName;
	}

	public void setTxtName(Text txtName) {
		this.txtName = txtName;
	}

	

	public TableCombo getCmbCategory() {
		return cmbCategory;
	}

	public void setCmbCategory(TableCombo cmbCategory) {
		this.cmbCategory = cmbCategory;
	}

	public TableCombo getCmbLevel() {
		return cmbLevel;
	}

	public void setCmbLevel(TableCombo cmbLevel) {
		this.cmbLevel = cmbLevel;
	}

	public AyuBigDecimal getTxtBiaya() {
		return txtBiaya;
	}

	public void setTxtBiaya(AyuBigDecimal txtBiaya) {
		this.txtBiaya = txtBiaya;
	}

	@Override
	protected void checkSubclass() {
		// Disable the check that prevents subclassing of SWT components
	}



}
